package service.impl;

import java.util.List;

import net.chopinlite.*;
import entity.Product;
import service.IProductService;

public class ProductServiceImpl extends BaseServiceImpl implements IProductService{

	private Dao<Product> pd;

	public ProductServiceImpl() {
		pd=Dao.make(Product.class);
	}

	@Override
	public List<Product> showList() {
		return pd.findAll();
	}

	@Override
	public Product showDetail(int pid) {
		//查找指定ID的商品实体
		return pd.findById(pid);
	}

}
